<template>
	<view class="container">
		<view class="search">
			<u-search v-model="keywords" :focus="true" shape="square" bgColor="#363636" @custom="searchBank"
				@search="searchBank" :action-style="actionStyle" />
		</view>
	</view>
</template>

<script>
	import {
		goodsList
	} from '@/api/index.js'
	export default {
		data() {
			return {
				keywords: '',
				goodsList: [], //商品列表
				actionStyle: {
					color: '#909399',
					padding: '12rpx',
					borderRadius: '4rpx',
					backgroundColor: '#363636'
				},
			}
		},
		onLoad() {
			this.goodsListFun()
		},
		methods: {
			// 商品列表
			goodsListFun() {
				goodsList({
					pageNo: 1,
					pageSize: 10
				}).then(res => {
					console.log("商品列表", res)
					this.goodsList = res.list
				})
			},
			searchBank() {

			}
		}
	}
</script>

<style lang="scss" scoped>
	.container {
		padding: 20rpx 10rpx;
		background-color: black;

		.search {
			height: 80rpx;
		}
	}

	.u-search__action {
		border: 1px solid #363636;
	}
</style>
